<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<meta name="decorator" content="sysDefault" />
<script type="text/javascript">
	function funform(url,target){
		window.open(url,target);
	}
</script>
</head>
<body>
	<div class="container-fluid">
		<div class="row">
			<div class="col-xs-12">
				<div class="panel panel-default">
				  <div class="panel-heading">
				    <h3 class="panel-title">
				    	特殊条款
						<button class="btn btn-success btn-sm pull-right" role="button" onclick="funform('${contextPath}/sys/base/spfItem/add','_self');">新增</button>
				    </h3>
				   
				  </div>
				   <form:form id="specificItemForm"   method="post" class="navbar-form navbar-left" role="search">
				   		<div class="form-group">
						   <input type="text" id="dictType"  class="form-control" placeholder="条款代码"/>
						</div>
						<button type="submit" class="btn btn-primary" id="queryBtn">查询</button>
				    </form:form>
				  	<tags:message content="${message}"/>
					<table class="table table-striped table-hover o-l-table" id="table1">
						<thead>
							<tr>
								<th style="width: 1px"><input type="checkbox" data-ckb="all"></th>
								<th>ID</th>
								<th>编码</th> 
								<th>描述</th>
								<th>字典类型</th>
								<th>创建人</th>
								<th>创建时间</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
							<c:forEach items="${list}" var="specificItem">
								<tr data-herf="${contextPath}/sys/base/spfItem/get?id=${specificItem.id}" data-target="_self">
									<td class="o-l-tab-ckb">
										<input type="checkbox" data-ckb-id="${specificItem.id}">
									</td>
									<td>${specificItem.id}</td>
									<td>${specificItem.itemNum}</td>
									<td>${specificItem.itemName}</td>
									<td>${specificItem.dicType}</td>
									<td>${specificItem.createBy}</td>
									<td> <fmt:formatDate value="${specificItem.createTime}" type="both" pattern="yyyy-MM-dd"/></td>
									<td>
										<a href="${contextPath}/sys/base/spfItem/${specificItem.id}/view">查看</a>
										<a href="${contextPath}/sys/base/spfItem/${specificItem.id}/edit">修改</a>
										<a href="${contextPath}/sys/base/spfItem/${specificItem.id}/delete"
										   onclick="return Oosp_Confirm('确认要删除该条数据吗？', this.href)">删除</a>
									</td>
								</tr>
							</c:forEach>
						</tbody>
					</table>
				  <div class="panel-footer">
				  	<!--<page:pager page="${page}"/> 等待宏天分页功能完善-->
				  	<ul class="pagination o-list-pagination">
						<li class="disabled"><a href="javascript:">&#171; 上一页</a></li>
						<li class="disabled"><a href="#">1</a></li>
						<li class="disabled"><a href="#">下一页 &#187;</a></li>
						<li class="disabled info">&nbsp;<a href="javascript:">当前 <input type="text" value="1" onkeypress="var e=window.event||this;var c=e.keyCode||e.which;if(c==13)page(this.value,10);" onclick="this.select();"/> / <input type="text" value="10" onkeypress="var e=window.event||this;var c=e.keyCode||e.which;if(c==13)page(1,this.value);" onclick="this.select();"/> 条，共 10 条</a><li>
					</ul>
				  </div>
				</div>			
			</div>
		</div>
	</div>
</body>
</html>